package com.qf.air.exception;

import com.qf.air.enums.AirEnum;

/**
 * @Author: 维多利加
 * @Date: 2021/3/24 19:23
 */
public class AirEx extends RuntimeException {

    private Integer code;

    public Integer getCode() {
        return code;
    }

    public AirEx(AirEnum airEnum) {
        super(airEnum.getMsg());
        this.code = airEnum.getCode();
    }

    public AirEx(String message, Integer code) {
        super(message);
        this.code = code;
    }
}
